﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shumei.EFCore.Model
{
    public class Course
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        ///课程的图标
        public string CourseIcon { get; set; }
        [StringLength(150)]
        ///课程的简要说明
        public string CourseSimpleDes { get; set; }
        /// <summary>
        /// 课程介绍 HTML 文本
        /// </summary>
        public string CourseDes { get; set; }


        public DateTime UploadTime { get; set; }
        public int CourseTypeId { get; set; }
        public virtual CourseType CourseType { get; set; }


        public virtual User Teacher { get; set; }
        
        public  virtual List<Course_Study> Students { get; set; }

        public virtual List<CourseVideo> CourseVideos { get; set; }
    }
}
